package main

import "fmt"

func main() {
	map1, map2, map3 := make(map[string]string), make(map[string]string), make(map[string]string)
	map1["name"] = "念威啊"
	map1["age"] = "21"
	map1["sex"] = "男"

	map2["name"] = "王亿亲"
	map2["age"] = "21"
	map2["sex"] = "男"

	map3["name"] = "崔二楞"
	map3["age"] = "20"
	map3["sex"] = "女"

	list1 := make([]map[string]string, 0, 3)
	list1 = append(list1, map1)
	list1 = append(list1, map2)
	list1 = append(list1, map3)

	for i, value := range list1 {
		fmt.Println(value, i, value["name"], value["age"], value["sex"])
	}

	//map 是引用类型
}
